# -*- coding: utf-8 -*-
"""
@Time    : 2024/7/31 13:30 
@Author  : ZhangShenao 
@File    : main.py
@Desc    : Flask启动入口类

通过命令行方式启动Flask应用:
export FLASK_DEBUG=True # 设置环境变量
export FLASK_APP=main.py    # 设置Flask应用的模块路径
python3 -m flask run --host=0.0.0.0 --port=8088 # 运行Flask应用,并绑定域名和端口号
"""
from flask import Flask

app = Flask(__name__)
app.config["DEBUG"] = True


@app.route("/", methods=["GET", "POST"])
def index() -> str:
    return "Welcome to Flask!"


if __name__ == '__main__':
    app.run()
